﻿using AutoMapper;
using DFGK_WMS.Context;
using DFGK_WMS.IRepository;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Repository
{
    public class ErrorLogRepository : BaseRepository<TErrorLog>, IErrorLogRepository
    {
        public ErrorLogRepository(DFGK_DB context, IMapper mapper) : base(context, mapper)
        {
        }

        public bool AddErrorLog(TErrorLog m)
        {
            Context.TErrorLogs.Add(m);
            return Context.SaveChanges()>0;
        }
    }
}
